<?php
namespace app\index\controller;

use library\Controller;
use think\Db;
/**
 * 公用
 * Class Publicot
 * @package app\index\controller
 */
class Publicot extends Base
{
    
    
    /**
     * 提示过渡页
     */
    public function transition()
    {
    	$data = $this->request->param();
    	$this->info = $data[0];
    	$type = $data[1];
    	if($type == 1){
    		//员工管理列表
    		$this->url = 'index/staff/index';
    	}
    	if($type == 2){
    		//增员服务列表
    		$this->url = 'index/increase/index';
    	}
		if($type == 3){
			//减员服务列表
    		$this->url = 'index/downsizing/index';
    	}
		if($type == 4){
			//社保账单列表
    		$this->url = 'index/insbill/index';
    	}
    	if($type == 5){
    		//增员确认列表
    		$this->url = 'index/incconfig/index';
    	}
		if($type == 6){
			//减员确认列表
    		$this->url = 'index/downconfig/index';
    	}
    	if($type == 7){
			//套餐列表
    		$this->url = 'index/index/package?type=2';
    	}
    	if($type == 8){
			//订单列表
    		$this->url = 'index/order/index';
    	}
    	if($type == 9){
			//首页
    		$this->url = 'index/index/index';
    	}
    	if($type == 10){
			//增值账单
    		$this->url = 'index/cadditionalbill/index';
    	}
        $this->fetch();
    }
	
	
	/**
     * 404页
     */
    public function haserror()
	{
		return $this->fetch();
	} 
}
